<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <body>

        <ui:composition template="./../plantillas/plantillaBase.xhtml">
            <ui:define name="titulo">
                Principal
            </ui:define>
             <ui:define name="identificador">
             </ui:define>
            <ui:define name="editortexto">
              <script type="text/javascript" src="../resources/js/ckeditor/ckeditor.js"></script>
              <script type="text/javascript" src="../resources/js/editor.js"/>
              <script type="text/javascript">
                  window.onload = function()
			{
			       CARGARCKE();
                               ESTILOCKE();
			}
              </script>
            </ui:define>
            <ui:insert name="login"></ui:insert>
            <ui:define name="contenido">
                <h:form>
                    <p:fieldset id="reporteExpe" legend="Guardar Expediente">
                        <h:panelGrid columns="1" width="300" cellspacing="8">
                            <p:commandButton value="Guardar" ajax="submit" onclick="guardarPlantillaBase();" action="#{plantillaExpediente.addPlantillaBase}"/>
                        </h:panelGrid>
                        <h:panelGrid columns="1" width="800" cellspacing="8">
                           <textarea class="2" cols="2" id="editor1" rows="2" style="left: 193px; top: 25px; position: absolute"></textarea>
                        </h:panelGrid>
                       </p:fieldset>
                    <h:inputTextarea id="editor2" value="#{plantillaExpediente.contenido}"></h:inputTextarea>
                </h:form>
           </ui:define>
        </ui:composition>
   </body>
</html>